<%--list page --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<center>
	<!-- 게시판 메뉴 -->
	<h1>편성표</h1>
	<s:if test="type==1">
		<h1>편성표</h1>
	</s:if>
	<s:if test="type==2">
		<h1>공지사항</h1>
	</s:if>
	<s:if test="type==3">
		<h1>Q&A</h1>
	</s:if>
	<table border=0 width=600 cellpadding="0" cellspacing="0">
		<tr>
			<td colspan="5"><hr width="600" color="#d5d5d5" size="3"></td>
		</tr>
		<tr>
			<th width="10%">번호</th>
			<th width="40%">제목</th>
			<th width="15%">작성자</th>
			<th width="25%">작성일</th>
			<th width="10%">조회수</th>
		</tr>	
		<tr>
			<td colspan="5"><hr width="600" color="#d5d5d5" size="1"></td>
		</tr>
		
		<%
			for(int i=1; i<=10; i++){
		%>
			<td width="10%"><%=i %></td>
			<td width="40%"><s:a href="suport/content.jsp" theme="ajax" targets="maincontents">하하하하하</s:a></a></td>
			<td width="15%">이재철</td>
			<td width="25%">2011-12-15</td>
			<td width="10%">0</td>
		<tr>
			<td colspan="5"><hr width="600" color="#d5d5d5" size="1"></td>
		</tr>
		<%		
			}
		%>
		<s:iterator value="list">
		<tr>
			<td align=left width=30%>&nbsp;</td>
			<td align=center width=40%>
			<img src="../image/border/prev.jpg" border=0>
			<img src="../image/border/next.jpg" border=0>
			<td align=right width=30%>
			<s:a href="suport/insert.do" theme="ajax" targets="mainlist"><img src="../image/border/write.jpg" border=0></s:a>
			</td>
		</tr>
		</s:iterator>
	</table>
	
	<!-- 메뉴 검색 찾기 -->
	<table	border=0 width=600 cellpadding="5">
		<tr>
			<td align="left">글쓰기</td>
			<td align="right"><img src="../image/board/left_arrow.png" border=0>
		<%
			for(int i=1; i<=10; i++){
		%>
			&nbsp;<%=i %>&nbsp;
		<%		
			}
		%><img src="../image/board/right_arrow.png" border=0></td>
		</tr>
		<tr>
			<td colspan="2" align="center">
			&nbsp;
			</td>
		</tr>
	</table>
	</center>
</body>
</html>